import java.io.*;

import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.java_websocket.drafts.Draft_17;

public class Hello extends HttpServlet{

    public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException {
		//PrintWriter out=response.getWriter();
		//out.println("aaaaaaaaaaaaa");
    	int port;
		try {
			port = new Integer(9003);
		} catch ( Exception e ) {
			System.out.println( "No port specified. Defaulting to 9003" );
			port = 9003;
		}
	 	new websoketImpl( port, new Draft_17() ).start();
	}
}
